import request from '@/utils/request'

//获取所有项目
export function getAllProject(data){
    return request({
        url: "/getProjectlist/" + data,
        method: "get",
    })
}
// 查询所有集采目录
export function selectAllPotentialSuppliers(data){
    return request({
        url: "/potentialSuppliers/all/" + data,
        method: "get"
    })
}

// 添加集采目录
export function addPotentialSuppliers(data){
    return request({
        url: "/potentialSuppliers/addPotentialSuppliers",
        method: "post",
        data:data
    })
}


// 删除集采
export function delPotentialSuppliers(data){
    return request({
        url: "/potentialSuppliers/delPotentialSuppliers/" + data,
        method: "get",
    })
}


// 修改集采
export function updatePotentialSuppliers(data){
    return request({
        url: "/potentialSuppliers/updatePotentialSuppliers",
        method: "put",
        data:data
    })
}
//提交审批
export function SubmitPotentialSuppliers(data){
    return request({
        url: "/potentialSuppliers/submitApprove/" + data,
        method: "get",
    })
}

//审批通过
export function ApprovePotentialSuppliers(data){
    return request({
        url: "potentialSuppliers/approve",
        method: "post",
        data:data
    })
}

//审批退回
export function RejectPotentialSuppliers(data){
    return request({
        url: "potentialSuppliers/reject",
        method: "post",
        data:data
    })
}
